package com.campus.help.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 微信小程序配置类
 *
 * @author campus-help
 * @since 2025-09-18
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "campus.help.wechat")
public class WechatConfig {

    /**
     * 小程序AppID
     */
    private String appId;

    /**
     * 小程序AppSecret
     */
    private String appSecret;

    /**
     * 微信API基础URL
     */
    private String apiBaseUrl = "https://api.weixin.qq.com";

    /**
     * 登录凭证校验接口
     */
    private String code2SessionUrl = "/sns/jscode2session";

    /**
     * 获取用户信息接口
     */
    private String userInfoUrl = "/cgi-bin/user/info";

    /**
     * 获取Access Token接口
     */
    private String accessTokenUrl = "/cgi-bin/token";
}
